<div class="projects view">
<h2><?php  __('Project');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Project Year'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($project['ProjectYear']['name'], array('controller' => 'project_years', 'action' => 'view', $project['ProjectYear']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Project Category Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['project_category_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($project['User']['name'], array('controller' => 'users', 'action' => 'view', $project['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Security Code'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['security_code']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Active'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['active']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $project['Project']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Project', true), array('action' => 'edit', $project['Project']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Project', true), array('action' => 'delete', $project['Project']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $project['Project']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Projects', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Years', true), array('controller' => 'project_years', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Year', true), array('controller' => 'project_years', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Notes', true), array('controller' => 'project_notes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Note', true), array('controller' => 'project_notes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Reports', true), array('controller' => 'project_reports', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Report', true), array('controller' => 'project_reports', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Project Students', true), array('controller' => 'project_students', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Project Student', true), array('controller' => 'project_students', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Project Notes');?></h3>
	<?php if (!empty($project['ProjectNote'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Content'); ?></th>
		<th><?php __('Published'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($project['ProjectNote'] as $projectNote):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectNote['id'];?></td>
			<td><?php echo $projectNote['project_id'];?></td>
			<td><?php echo $projectNote['user_id'];?></td>
			<td><?php echo $projectNote['content'];?></td>
			<td><?php echo $projectNote['published'];?></td>
			<td><?php echo $projectNote['created'];?></td>
			<td><?php echo $projectNote['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_notes', 'action' => 'view', $projectNote['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_notes', 'action' => 'edit', $projectNote['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_notes', 'action' => 'delete', $projectNote['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectNote['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Note', true), array('controller' => 'project_notes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Reports');?></h3>
	<?php if (!empty($project['ProjectReport'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('File Report'); ?></th>
		<th><?php __('Reviews'); ?></th>
		<th><?php __('Teacher Reviews'); ?></th>
		<th><?php __('Project Result'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($project['ProjectReport'] as $projectReport):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectReport['id'];?></td>
			<td><?php echo $projectReport['project_id'];?></td>
			<td><?php echo $projectReport['user_id'];?></td>
			<td><?php echo $projectReport['description'];?></td>
			<td><?php echo $projectReport['file_report'];?></td>
			<td><?php echo $projectReport['reviews'];?></td>
			<td><?php echo $projectReport['teacher_reviews'];?></td>
			<td><?php echo $projectReport['project_result'];?></td>
			<td><?php echo $projectReport['created'];?></td>
			<td><?php echo $projectReport['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_reports', 'action' => 'view', $projectReport['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_reports', 'action' => 'edit', $projectReport['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_reports', 'action' => 'delete', $projectReport['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectReport['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Report', true), array('controller' => 'project_reports', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Project Students');?></h3>
	<?php if (!empty($project['ProjectStudent'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Is Leader'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($project['ProjectStudent'] as $projectStudent):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $projectStudent['id'];?></td>
			<td><?php echo $projectStudent['project_id'];?></td>
			<td><?php echo $projectStudent['user_id'];?></td>
			<td><?php echo $projectStudent['is_leader'];?></td>
			<td><?php echo $projectStudent['created'];?></td>
			<td><?php echo $projectStudent['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'project_students', 'action' => 'view', $projectStudent['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'project_students', 'action' => 'edit', $projectStudent['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'project_students', 'action' => 'delete', $projectStudent['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $projectStudent['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Project Student', true), array('controller' => 'project_students', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
